package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.UserAddrCUDClientFallback;
import com.zqh.myfmmall.result.Result;
import com.zqh.myfmmall.rowbeans.entity.UserAddr;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-03-07 21:13
 */
@FeignClient(value = "user-addr-cud" ,fallbackFactory = UserAddrCUDClientFallback.class)
public interface UserAddrCUDClient{
    @PostMapping("userAddr/create")
    Result create (@RequestBody UserAddr userAddr);

    @PutMapping("userAddr/update")
    Result update (@RequestBody UserAddr userAddr);

    @DeleteMapping("userAddr/delete/{id}")
    Result delete(@PathVariable("id") String id);
}
